a, b = map(int, input().split())
res = sum(range(a, b + 1, 1))
print(res)